<?php
namespace Api\Controller;
use Think\Controller;
class CourseController extends Controller {
	public function getcourse(){
    	$data=$_GET['clubid'];
        $courseModel=M('course');
    	$course=$courseModel->where("clubid='$data'")->select();
        echo $courseModel->getLastSQL();
        var_dump($course);
    	echo json_encode($course);
    }
    public function getvideos(){
        $videos=M('videos');
        $data=$videos->order("vid")->select();
        echo json_encode($data);
    }
    
} 
